<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<script type="text/javascript" src="jquery/jquery-1.10.2.js"></script>
<script type="text/javascript" src="md5/md5.js"></script>
	<style type="text/css">
	</style>
	<script type="text/javascript">
		$(document).ready(function(){
			$("#submit").click(function(){
				var form = document.getElementById("feedForm");
				var latlng = form.latlng.value;
				var title=form.title.value;
				var content=form.content.value;
				var url = "http://map.baidu.com/?latlng="+latlng+"&title="+title+"&content="+content+"&autoOpen=true&l=";
			    location.href = url;
			});
		});
		function doAjax(method,url,parm){
			$.ajax({
				url:url,
				type:method,
				data:parm,
				success:function(r){
					console.log(r);
					$("#resultTextarea").val(JSON.stringify(r));
				},
				error:function(XMLHttpRequest, textStatus, errorThrown){
					console.log(XMLHttpRequest.responseText);
					$("#resultTextarea").val(XMLHttpRequest.responseText);
				}
			});
		}
		function doJsonAjax(method,url,parm){
			$.ajax({
				url:url,
				type:method,
				contentType:"application/json",
				data:JSON.stringify(parm),
				success:function(r){
					console.log(r);
					$("#resultTextarea").val(JSON.stringify(r));
				},
				error:function(XMLHttpRequest, textStatus, errorThrown){
					console.log(XMLHttpRequest.responseText);
					$("#resultTextarea").val(XMLHttpRequest.responseText);
				}
			});
		}
	</script>
</head>
<style type="text/css">
.table{
	border-collapse:collapse;
	width:700px;
}
.table td,.table th{
	border:1px solid #ccc;
}
</style>
<body>
<fieldset>
   <legend>百度地图</legend>
   <form id="feedForm" method="post">
		坐标位置:<input type="text" name="latlng" value="40.056885091681,116.30814954222"></input>（逗号“,”分隔精度和纬度，如：114,29）
		地址：<input type="text" name="title" value="百度大厦"></input>
		地址描述：<input type="text" name="content" value="百度大厦"></input>
		<input id="submit" type="button" value="打开"></input>
	</form>
</fieldset>
</body>
</html>
